Parsing a Date |
![]() |
Instead of this |
Date d1 = new Date("Mar 13, 1997"); |
|
![]() |
Do this |
fmt = new SimpleDateFormat("MMM d, yyyy"); Date d1 = fmt.parse("Mar 13, 1997"); |